<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基础选择器之类选择器</title>
    <style>
        /* 类选择器口诀：样式点定义 结构类（class）调用  一个或多个 开发最常用*/
        .red {
            color: red;
        }
        .green {
            color: green;
        }
    </style>
</head>
<body>
    <ul>
        <li class="red">学习C++</li>
        <li>学习Java</li>
        <li class="green">学习HTML+CSS+JavaScript</li>
    </ul>
    <p class="red">男生1</p>
    <p class="red">男生2</p>
    <p>男生3</p>
    <div class="red">女生1</div>
    <div>女生2</div>
    <div>女生3</div>
</body>

</html>